package Comp;

import java.io.File;
import java.io.FilenameFilter;

public class ExcelFileFilter implements FilenameFilter {
	private String fileName;

	public ExcelFileFilter(String fileName) {
		this.fileName = fileName;
	}

	public boolean accept(File dir, String suffix) {
		if (suffix != null) {
			return fileName.endsWith(suffix);
		}
		return false;
	}

}